package com.ezhan.api.Service;

import com.ezhan.api.InstallMysqlService;
import com.ezhan.entity.PackageInfo;
import com.ezhan.install.MysqlInstaller;

import java.io.File;

public class MysqlServiceImpl implements InstallMysqlService {
    private MysqlInstaller mysqlInstaller;

    public MysqlServiceImpl() {
        this.mysqlInstaller = new MysqlInstaller();
    }

    @Override
    public boolean installMySQLFromZip(PackageInfo packageInfo, String installPath, File parentDir){
        return mysqlInstaller.installMySQLFromZip(packageInfo,installPath,parentDir);
    }

}
